package com.xiyounet.login.controller;

import com.xiyounet.login.service.LoginService;
import com.xiyounet.login.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginOut {
    @Autowired
    private LoginService loginService;
    @GetMapping("/loginOut")
    public Result logout(@RequestHeader("Authorization") String token){
        return loginService.loginOut(token);
    }
}
